package com.bjsxt.feign;

import com.bjsxt.config.feign.OAuth2FeignConfig;
import com.bjsxt.dto.AdminBankDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * description:
 * OpenFeign 远程调用 member-service 的 http 接口
 *
 * @author ALIENWARE
 * @version v1.0.0
 * @create 5/1/2024
 **/
@FeignClient(name = "admin-server", contextId = "adminBankFeignClient", configuration = OAuth2FeignConfig.class, path = "/adminBanks")
public interface AdminBankFeignClient {
    /**
     * 获取所有的银行卡
     *
     * @return 银行卡数据传输对象集合
     */
    @GetMapping("/getAdminBanks")
    List<AdminBankDto> getAdminBanks();
}
